ca67036742ea30449f41a39ff4b396025483cb2e,openrtb-core/src/test/java/com/google/openrtb/json/OpenRtbNativeJsonTest.java,OpenRtbNativeJsonTest,testResponse_emptyMessage,#,84
Before Change
.setId(5))
.setLink(NativeResponse.Link.newBuilder())
.build());
testResponse(newJsonFactory(), NativeResponse.newBuilder()
.setLink(NativeResponse.Link.newBuilder())
.build());
}
@Test
After Change
.addAssets(NativeResponse.Asset.newBuilder().setId(5))
.setLink(NativeResponse.Link.newBuilder())
.build();
final NativeResponse emptyNativeResponse = NativeResponse.newBuilder().setLink(NativeResponse.Link.newBuilder()).build();
testResponseWithNativeAsString(newJsonFactory(), fullNativeResponse);
testResponseWithNativeAsString(newJsonFactory(), emptyNativeResponse);
testResponseWithNativeAsObject(newJsonFactory(), fullNativeResponse);
testResponseWithNativeAsObject(newJsonFactory(), emptyNativeResponse);
}
@Test